<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景相关属性</title>
    <style>
        body {
            background-color: gray;
        }

        div {
            width: 400px;
            height: 400px;
            border: 2px black solid;
            font-size: 20px;
            /* background-color: skyblue;
            background-image: url(../images/悟空.jpg);
            background-repeat: no-repeat; */
            /* background-position: center; */
            /* background-position: 300px; */
            background: skyblue url(../images/悟空.jpg) no-repeat 300px;
        }
    </style>
</head>

<body>
    <div>你好啊</div>
</body>

</html>